<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8"/>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=Edge">
    <title>首页-明信片</title>
    <link rel="stylesheet" href="plugin/awesome4/css/font-awesome.min.css"/>
    <link rel="stylesheet" href="plugin/bootstrap.min.css"/>
    <link rel="stylesheet" href="style/common.css"/>
    <link rel="stylesheet" href="style/index_pc.css"/>
    <link href="style/royalslider.css" rel="stylesheet">
    <link href="style/skin-white.css" rel="stylesheet">
    <script src="plugin/jquery-1.11.2.min.js"></script>
    <script src="plugin/bootstrap.min.js"></script>
    <script src="plugin/jquery.royalslider.min.js"></script>
    <script src="script/index_pc.js"></script>
</head>
<body>
<header>
    <nav class="navbar navbar-default navbar-fixed-top">
        <div class="container">
            <div class="navbar-header pull-left">
                <!-- Logo -->
                <a class="navbar-brand" href="/">POSTCARD</a>
            </div>
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <!-- Navmenu -->
            <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
                <ul class="nav navbar-nav navbar-right">
                    <li><a href="index.php">主页</a></li>
                    <li><a href="gallery.php">图库</a></li>
                    <li><a href="javascript:;">制作明信片</a></li>
                    <li><a href="javascript:;" data-toggle="modal" data-target="#login_modal">注册/登录</a></li>
                    <li><a href="user.html">个人中心</a></li>
                </ul>
            </div>
        </div>
    </nav>
</header>
<div id="container">
    <div class="sliderContainer fullWidth clearfix">
        <div id="full-width-slider" class="royalSlider heroSlider rsMinW">
            <div class="rsContent"> <a href="#"><img class="rsImg" src="images/slide1.png" alt="" /></a>
            </div>
            <div class="rsContent"> <img class="rsImg" src="images/slide2.png" alt="" />
            </div>
            <div class="rsContent"> <img class="rsImg" src="images/slide3.png" alt="" />
            </div>

        </div>
    </div>

    <div class="container gallery-container">
        <div class="row">
            <div class="col-xs-12 col-md-12">
                <h1 class="gallery-title">明信片分类图库</h1>
                <h3 class="gallery-subtitle">海量图片提供</h3>
            </div>
        </div>

        <div class="row gallery-row">
            <?php foreach($allCard as $card) { ?>
            <div class="gallery-example col col-xs-12 col-sm-3 col-md-3 col-lg-3">
                <div class="gallery-wrap">
                    <a href='card.php?id=<?=$card['id']?>'>
                    <div class="gallery-item gallery-item-square" style="background-image: url('card_img/<?=$card['img_src']?>.jpg')">
                        <div class="gallery-item-overlay"></div>
                        <div class="gallery-item-ribbon"></div>
                        <div class="gallery-item-text text-center">
                            <p>38,323</p>
                            <p><?=$card['title']?></p>
                        </div>
                    </div>
                    </a>
                </div>
            </div>
            <?php } ?>
        </div>
    </div>
    <div class="container gallery-container">
        <div class="row">
            <div class="col-xs-12 col-md-12">
                <h1 class="gallery-title">在线明信片制作</h1>
                <h3 class="gallery-subtitle">涂鸦秀</h3>
            </div>
        </div>

        <div class="row gallery-row">
            <?php foreach($madeCard as $m_card) { ?>
                <div class="gallery-example col col-xs-12 col-sm-3 col-md-3 col-lg-3">
                    <div class="gallery-wrap">
                        <a href='card.php?id=<?=$m_card['id']?>'>
                            <div class="gallery-item gallery-item-square" style="background-image: url('card_made/<?=$m_card['mcard_src']?>.png')">
                                <div class="gallery-item-overlay"></div>
                                <div class="gallery-item-ribbon"></div>
                                <div class="gallery-item-text text-center">
                                    <p><?=$m_card['card_name']?></p>
                                </div>
                            </div>
                        </a>
                    </div>
                </div>
            <?php } ?>
        </div>
    </div>

    <div class="container">
        <div class="row">
            <div class="col-xs-12 col-md-12">
                <h1 class="gallery-title">个人明信片中心</h1>
                <h3 class="gallery-subtitle">记录寄送信息</h3>
            </div>
        </div>
        <div class="row gallery-row">
            <div class="col col-xs-12 col-sm-3 col-md-3 col-lg-3">
                <div class="gallery-wrap">
                    <div class="gallery-item gallery-item-square" style="background-image: url('images/f1.jpg')">
                        <div class="gallery-item-overlay"></div>
                        <div class="gallery-item-ribbon"></div>
                        <div class="gallery-item-text text-center">
                            <p>38,323</p>
                            <p>手绘</p>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <div class="footer">
        <p class="copyright text-center">
            版权所有：xpwh工作室  2016-2017 , All Rights Reserved.
            京ICP备060018号 京公网安备110112000309号
        </p>
    </div>
</div>


<!-- Modal -->
<div class="modal fade" id="login_modal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
                <h4 class="modal-title" id="myModalLabel">登录</h4>
            </div>
            <div class="modal-body">
                <div class="form-group">
                    <div class="help-block with-errors"></div>
                    <div class="input-group">
                        <label class="input-group-addon" for="login_name">
                            <span class="glyphicon glyphicon-user"></span>
                        </label>
                        <input type="text" class="form-control" data-login-name=1 required id="login_name" name="login_name" placeholder="手机号/用户账号">
                    </div>

                </div>
                <div class="form-group">
                    <div class="help-block with-errors"></div>
                    <div class="input-group">
                        <label class="input-group-addon" for="password">
                            <span class="glyphicon glyphicon-lock"></span>
                        </label>
                        <input type="password" class="form-control" data-password=1 required id="password" name="password" placeholder="请输入密码">
                    </div>
                </div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">确定</button>
                <button type="button" class="btn btn-primary" data-toggle="modal" data-target="#register_modal">注册</button>
            </div>
        </div>
    </div>
</div>
<div class="modal fade" id="register_modal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
                <h4 class="modal-title" id="myModalLabel">注册</h4>
            </div>
            <div class="modal-body">
                <div class="form-group">
                    <div class="help-block with-errors"></div>
                    <div class="input-group">
                        <label class="input-group-addon" for="login_name">
                            <span class="glyphicon glyphicon-user"></span>
                        </label>
                        <input type="text" class="form-control" data-login-name=1 required id="login_name" name="login_name" placeholder="手机号/用户账号">
                    </div>

                </div>
                <div class="form-group">
                    <div class="help-block with-errors"></div>
                    <div class="input-group">
                        <label class="input-group-addon" for="password">
                            <span class="glyphicon glyphicon-lock"></span>
                        </label>
                        <input type="password" class="form-control" data-password=1 required id="password" name="password" placeholder="请输入密码">
                    </div>
                </div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">确定</button>
                <button type="button" class="btn btn-primary" data-toggle="modal" data-target="#register_modal">登录</button>
            </div>
        </div>
    </div>
</div>

</body>
</html>